* {
  margin: 0;
  box-sizing: border-box;
}

@bgColor:#fff;

body {
  display: flex;
  width: 100%;
  height: 100vh;
  background-color: #745ae9;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  .search {
    position: relative;
    height: 50px;
    .searchBtn {
      position: absolute;
      top: 0;
      left: 0;
      width: 50px;
      height: 50px;
      text-align: center;
      line-height: 50px;
      background-color: @bgColor;
      transition: transform 0.3s ease;
      cursor: pointer;
      .iconfont {
        font-size: 24px;
      }
      &.active {
        transform: translateX(99px);
      }
    }
    .inputSearch {
      display: flex;
      height: 50px;
      position: absolute;
      top: 0;
      left: 0;
      justify-content: center;
      input {
        width: 50px;
        height: 50px;
        outline: none;
        border: 0;
        font-size: 18px;
        padding-left: 10px;
        transition: all 0.3s ease;
        &.active {
          width: 200px;
          transform: translateX(-99px);
        }
      }
    }
  }
}